package com.gopay.common.domain.airticket;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

@Entity
@Table(name = "AIR_TICKET_MAIL_RECEIVER")
public class AirTicketMailReceiver extends BaseEntity {

	private static final long serialVersionUID = 6634735382658446061L;

	@Id
	@SequenceGenerator(name = "AIR_TICKET_MAIL_RECEIVER_SQ_GENERATOR", sequenceName = "AIR_TICKET_MAIL_RECEIVER_SQ")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AIR_TICKET_MAIL_RECEIVER_SQ_GENERATOR")
	@Column(name = "SQ", unique = true, nullable = false, precision = 22)
	private int id;

	@Column(name = "CUST_ID")
	private String custId;

	@Column(name = "CUST_NAME")
	private String custName;
	
	@Column(name = "mail")
	private String mail;
	
	@Column(name = "del_flag")
	private String delFlag;
	
	@Column(name = "create_ts")
    @Temporal(TemporalType.TIMESTAMP)
	private Date createdTs;
	
	@Column(name = "last_upd_ts")
    @Temporal(TemporalType.TIMESTAMP)
	private Date lastUpdTs;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCustId() {
		return custId;
	}

	public void setCustId(String custId) {
		this.custId = custId;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public Date getCreatedTs() {
		return createdTs;
	}

	public void setCreatedTs(Date createdTs) {
		this.createdTs = createdTs;
	}

	public Date getLastUpdTs() {
		return lastUpdTs;
	}

	public void setLastUpdTs(Date lastUpdTs) {
		this.lastUpdTs = lastUpdTs;
	}

	public String getCustName() {
		return custName;
	}

	public void setCustName(String custName) {
		this.custName = custName;
	}
}
